package com.xxtx.trade.sysUser.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author 
 */
public class TradeSysMenu implements Serializable {
    private String id;

    /**
     * 菜单名称
     */
    private String name;

    /**
     * 父菜单
     */
    private String pid;

    /**
     * 菜单路径
     */
    private String path;

    /**
     * 备注
     */
    private String remark;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createTime;

    /**
     * 排序号
     */
    private Integer sort;

    /**
     * 图标
     */
    private String icon;

    /**
     * 状态：1 启用 2 禁用
     */
    private Integer state;
    /**
     * 子菜单
     */
    private List<TradeSysMenu> bodyMenus;
    /**
     * 是否被选中  1选中 2 未选中
     */
    private int isCheck;

    public List<TradeSysMenu> getBodyMenus() {
        return bodyMenus;
    }

    public void setBodyMenus(List<TradeSysMenu> bodyMenus) {
        this.bodyMenus = bodyMenus;
    }

    @Override
    public String toString() {
        return "TradeSysMenu{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", pid='" + pid + '\'' +
                ", path='" + path + '\'' +
                ", remark='" + remark + '\'' +
                ", createTime=" + createTime +
                ", sort=" + sort +
                ", icon='" + icon + '\'' +
                ", state=" + state +
                ", bodyMenus=" + bodyMenus +
                ", isCheck=" + isCheck +
                '}';
    }

    public int getIsCheck() {
        return isCheck;
    }

    public void setIsCheck(int isCheck) {
        this.isCheck = isCheck;
    }

    private static final long serialVersionUID = 1L;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }
}